
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">

<title>Mtons UI</title>

<!-- Bootstrap core CSS -->
<link href="../../dist/css/bootstrap.min.css" rel="stylesheet">

<!-- Custom styles for this template -->
<link href="../../dist/css/dashboard.css" rel="stylesheet">

<script src="../../depends/jquery.min.js"></script>
</head>

<body>
	<div class="container-fluid">

		<div class="row">
			<h2 class="sub-header">Format</h2>

			<p>字符串格式化</p>
			<p>
				可以接收多个参数, 参数可以是基础数据类型, 也可以是 Json 数组
			</p>
			<div>
				<h4>示例：</h4>
				<pre>
// 方式1
    mtons.format('{0}, my name is {1}', 'tom', 'hello');
// 方式2
    mtons.format('{say}, my name is {name}', {say: 'tom', name: 'hello'});
    
// output: my name is tom, hello
				</pre>
			</div>
		</div>
	</div>
</body>
</html>
